Class OCSPServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.netscape.cms.servlet.base.CMSServlet
com.netscape.cms.servlet.ocsp.OCSPServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class OCSPServlet extends CMSServlet
Process OCSP messages, According to RFC 2560 See http://www.ietf.org/rfc/rfc2560.txt
Version:
$Revision$ $Date$
See Also:
  • Field Details

  • Constructor Details

    • OCSPServlet

      public OCSPServlet()
  • Method Details

    • init

      public void init(javax.servlet.ServletConfig sc) throws javax.servlet.ServletException
      initialize the servlet. This servlet uses the template file "ImportCert.template" to process the response.
      Specified by:
      init in interface javax.servlet.Servlet
      Overrides:
      init in class CMSServlet
      Parameters:
      sc - servlet configuration, read from the web.xml file
      Throws:
      javax.servlet.ServletException
    • validate

      public OCSPResponse validate(OCSPRequest ocspRequest) throws Exception
      Throws:
      Exception
    • process

      protected void process(CMSRequest cmsReq) throws EBaseException
      Process the HTTP request. This method is invoked when the OCSP service receives a OCSP request. Based on RFC 2560, the request should have the OCSP request in the HTTP body as binary blob.
      Overrides:
      process in class CMSServlet
      Parameters:
      cmsReq - the object holding the request and response information
      Throws:
      EBaseException - if the servlet was unable to satisfactorily process the request